package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bbzn.device.client.dao.contact.ContactMapper;
import com.bbzn.device.client.dataobject.Contact;
import com.bbzn.device.client.service.ContactService;
@Service
public class ContactServiceImpl implements ContactService{

    @Resource
    private ContactMapper contactMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return contactMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Contact record) {
        return contactMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(Contact record) {
        return contactMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(Contact record) {
        return contactMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(Contact record) {
        return contactMapper.insertSelective(record);
    }

    @Override
    public Contact selectByPrimaryKey(Long id) {
        return contactMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Contact record) {
        return contactMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Contact record) {
        return contactMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Contact> findByAll(Contact contact) {
        return contactMapper.findByAll(contact);
    }

    @Override
    public int updateBatch(List<Contact> list) {
        return contactMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Contact> list) {
        return contactMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Contact> list) {
        return contactMapper.batchInsert(list);
    }

}
